/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package escom.ipn.modelo.facade;

import escom.ipn.modelo.dao.PreguntasDAO;
import escom.ipn.modelo.dto.Preguntas;
import java.sql.Connection;
import java.sql.SQLException;

/**
 *
 * @author Daniel
 */
public class PreguntasFacade {
    private Connection cnn;
    private PreguntasDAO dao;
    
    public PreguntasFacade (Connection cnn){
        this.cnn = cnn;
        dao = new PreguntasDAO();
    }
    
    public Preguntas leerPregunta(Preguntas a)
            throws SQLException{
        return dao.loadPregunta(a, cnn);
    }
}
